import { createApp } from "vue";
import App from "./App.vue";

// 引入路由
import router from "./router";
// 引入pinia状态管理工具
import {pinia} from "@/store";
// 引入element-plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 引入SvgIcon组件全局挂载
import SvgIcon from "@/components/SvgIcon.vue";

// 引入样式文件
// 引入css样式
import "@/styles/index.scss";
// 引入iconfont样式
import "@/assets/iconfont/iconfont.js";

// 创建实例
const app = createApp(App);

// 注册
app.use(router);
app.use(pinia);
app.use(ElementPlus);
app.component("SvgIcon", SvgIcon);

// 挂载
app.mount("#app");
